// 用于注册components文件夹内部全部全局组件！！！
import type { App } from 'vue'
import SvgIcon from '@/components/SvgIcon/SvgIcon.vue'
import Pagination from '@/components/Pagination/Pagination.vue'

const allGloabComponent: any = { SvgIcon, Pagination }
export function registerSvgIcons(app: App) {
  //循环注入
  Object.keys(allGloabComponent).forEach((item) => {
    app.component(item, allGloabComponent[item])
  })
}